import routes from '@/router/routes'
const getRoutes = async () => {
    const permissions = await fetch(`http://127.0.0.1:3005/precision`).then(r => r.json());
    return routes.filter(route => {
        return route.meta.permission?.every(p => permissions.includes(p))
    })
};
export {getRoutes}